package com.chenziwen.scala.chapter06

object Scala_Trait6 {
  def main(args: Array[String]): Unit = {
    val mysql = new MYSQL6 with DB6
    println(mysql.operate)
  }
}

trait Operate6 {
  var operate: String

  def insert()
}

trait DB6 extends Operate6 {
  var operate: String = "insert"

  def insert(): Unit = {

  }
}

class MYSQL6 {

}

